package com.coldwindblows.blog.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.coldwindblows.blog.bo.ArchiveBo;
import com.coldwindblows.blog.pojo.ContentDo;

public interface ContentMapper extends BaseMapper<ContentDo> {
	
	List<ContentDo> selectByStartTimeAndEndTime(@Param("start")Date start, @Param("end")Date end);

	List<ContentDo> selectBySelective(ContentDo record);
	
	List<ArchiveBo> findReturnArchiveBo();
	
	List<ContentDo> findByCatalog(@Param("mid")Integer mid);
	
	Long countBySelective(ContentDo record);
	
	Integer countByTypeAndSlug(@Param("type")String type, @Param("slug")String slug);
	
	Integer countByMid(@Param("mid")Integer mid);
	
	Integer updateCategoriesByOldCate(ContentDo record);
	
}
